<div class="doc-item" id="doc-1205"><h2 class="doc-item-name">raise*<span class="namespace">(clojure.contrib.error-kit)</span></h2><ul class="var-arglists"><li>(<span class="var-name">raise*</span>  err)</li></ul><div class="var-docstring"><p>Raise the given error object, best if created by an error
  constructor defined with deferror.  See also 'raise' macro.</p></div><div class="var-source"><pre>; clojure/contrib/error_kit.clj:86
(defn raise*
  [err]
  (let [err-tag (:tag err)]
    (loop [hs *handler-stack*]
      (if (empty? hs)
        ((:unhandled err) err)
        (let [[{:keys [htag] :as handler}] hs]
          (if (and htag (not (isa? err-tag htag)))
            (recur (next hs))
            (let [rtn ((:hfunc handler) err)]
              (if-not (vector? rtn)
                (throw-to &quot;default&quot; handler (list rtn))
                (condp = (rtn 0)
                  ::continue-with (rtn 1)
                  ::continue (if-let [continue (*continues* (rtn 1))]
                               (throw-to &quot;continue&quot; continue (rtn 2))
                               (do (prn *continues*) (throw
                                 (Exception.
                                   (str &quot;Unbound continue name &quot; (rtn 1))))))
                  ::do-not-handle (recur (next hs))
                  (throw-to &quot;do-not-handle&quot; handler (list rtn)))))))))))</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this
          license. You must not remove this notice, or any other, from this
          software.</p></div></div>